package com.beiben.workflow.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工作流申请对象 wf_apply
 *
 * @author 熊国强
 * @date 2020-12-17
 */
public class WfApply extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 申请ID
     */
    private Long applyId;

    /**
     * 申请人ID
     */
    @Excel(name = "申请人ID")
    private Long applyUserId;

    /**
     * 申请类型
     */
    @Excel(name = "申请类型")
    private String applyType;

    /**
     * 关联表名称
     */
    private String tableName;

    /**
     * 关联表ID
     */
    private Long tableId;

    /**
     * 审核状态（0：正在审核，1：审核通过，2：打回，3：拒绝）
     */
    @Excel(name = "审核状态", readConverterExp = "0=：正在审核，1：审核通过，2：打回，3：拒绝")
    private String state;

    /**
     * 完成情况
     */
    private String completion;

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyUserId(Long applyUserId) {
        this.applyUserId = applyUserId;
    }

    public Long getApplyUserId() {
        return applyUserId;
    }

    public void setApplyType(String applyType) {
        this.applyType = applyType;
    }

    public String getApplyType() {
        return applyType;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableId(Long tableId) {
        this.tableId = tableId;
    }

    public Long getTableId() {
        return tableId;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public String getCompletion() {
        return completion;
    }

    public void setCompletion(String completion) {
        this.completion = completion;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("applyId", getApplyId())
                .append("applyUserId", getApplyUserId())
                .append("applyType", getApplyType())
                .append("tableName", getTableName())
                .append("tableId", getTableId())
                .append("state", getState())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("completion", getCompletion())
                .toString();
    }
}
